package com.lanswon.qzsmk.model;

import java.io.Serializable;
/**
 * 扇区密钥
 * @author sun
 *
 */
public class BikeSection implements Serializable {
    /**
	 * 
	 */
	private static final long serialVersionUID = -5471390714371788994L;

	/** 序列号id */
    private Integer id;

    /** 市民卡号 */
    private String citizenCardNo;

    /** 扇区号 */
    private String no;

    /** 密钥A */
    private String keya;

    /** 密钥B */
    private String keyb;

    /** 控制字 */
    private String contrlword;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCitizenCardNo() {
        return citizenCardNo;
    }

    public void setCitizenCardNo(String citizenCardNo) {
        this.citizenCardNo = citizenCardNo == null ? null : citizenCardNo.trim();
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no == null ? null : no.trim();
    }

	public String getKeya() {
		return keya;
	}

	public void setKeya(String keya) {
		this.keya = keya;
	}

	public String getKeyb() {
		return keyb;
	}

	public void setKeyb(String keyb) {
		this.keyb = keyb;
	}

	public String getContrlword() {
		return contrlword;
	}

	public void setContrlword(String contrlword) {
		this.contrlword = contrlword;
	}

	@Override
	public String toString() {
		return "BikeSection [id=" + id + ", citizenCardNo=" + citizenCardNo + ", no=" + no + ", keya=" + keya
				+ ", keyb=" + keyb + ", contrlword=" + contrlword + "]";
	}

	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((citizenCardNo == null) ? 0 : citizenCardNo.hashCode());
		result = prime * result + ((contrlword == null) ? 0 : contrlword.hashCode());
		result = prime * result + ((keya == null) ? 0 : keya.hashCode());
		result = prime * result + ((keyb == null) ? 0 : keyb.hashCode());
		result = prime * result + ((no == null) ? 0 : no.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		BikeSection other = (BikeSection) obj;
		if (citizenCardNo == null) {
			if (other.citizenCardNo != null)
				return false;
		} else if (!citizenCardNo.equals(other.citizenCardNo))
			return false;
		if (contrlword == null) {
			if (other.contrlword != null)
				return false;
		} else if (!contrlword.equals(other.contrlword))
			return false;
		if (keya == null) {
			if (other.keya != null)
				return false;
		} else if (!keya.equals(other.keya))
			return false;
		if (keyb == null) {
			if (other.keyb != null)
				return false;
		} else if (!keyb.equals(other.keyb))
			return false;
		if (no == null) {
			if (other.no != null)
				return false;
		} else if (!no.equals(other.no))
			return false;
		return true;
	}

	


   
}